package com.bupt.ilink.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bupt.ilink.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    @Select("SELECT user_id FROM tb_user WHERE username = #{username}")
    String findUserIdByUsername(String username);
}
